package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.MouldBoardMsg;
import cn.stylefeng.guns.sys.modular.system.entity.Project;
import cn.stylefeng.guns.sys.modular.system.model.params.ProjectParam;
import cn.stylefeng.guns.sys.modular.system.model.result.ProjectResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiangge
 * @since 2020-09-10
 */
public interface ProjectMapper extends BaseMapper<Project> {

    /**
     * 获取列表
     *
     * @author jiangge
     * @Date 2020-09-10
     */
    List<ProjectResult> customList(@Param("paramCondition") ProjectParam paramCondition);

    /**
     * 获取map列表
     *
     * @author jiangge
     * @Date 2020-09-10
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ProjectParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author jiangge
     * @Date 2020-09-10
     */
    Page<ProjectResult> customPageList(@Param("page") Page page, @Param("paramCondition") ProjectParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author jiangge
     * @Date 2020-09-10
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ProjectParam paramCondition);

    int updateProjectByCondition(ProjectParam record);

    Project selectDd(Integer proid);

    /**
     * 查询督导列表
     * @return
     */
    List<Map> selectDdList(String name);

    /**
     * 查询营运经理列表
     * @return
     */
    List<Map> selectYyjlList();

    /**
     * 查询营运经理角色id
     * @return
     */
    List<Long> selectYyjl();

    /**
     * 查询营表格列表内容
     * @return
     */
    List<MouldBoardMsg> selectMsgList(@Param("proId")Integer proId, @Param("mouldId")Integer mouldId);
}
